import { axios } from '@/utils/request'

/**
 * 查询城市Tree
 *
 * @author Eric
 * @date 2021-03-27 12:23:29
 */
export function cityTree () {
  return axios({
    url: '/city/tree',
    method: 'get'
  })
}

/**
 * 根据父节点编码查询子节点
 *
 * @author Eric
 * @date 2021-03-27 12:23:29
 */
 export function getChildCity (parentCode) {
  return axios({
    url: '/city/getChildCity/{parentCode}',
    method: 'get'
  })
}
